You can set up the Contact Mini Profile and Contact Profile Picture iParts to prompt people to use their Facebook profile picture in iMIS, instead of uploading a picture. To use this feature, you must do the following:
■ Enable the Facebook feature in the web.config file
■ Create a Facebook app so that your website can connect to Facebook
■ Enable the iPart configuration option to Prompt for Facebook connection
When enabled, signed in users are prompted to connect to Facebook when they edit their profile picture and wherever their profile picture is displayed.
To create your Facebook application and use it in iMIS
1. Edit your website’s web.config file, located by default in C:\Program Files\ASI\imis\net. Find the EnableFacebookApi property, and change the value to true.
2. Create your Facebook application.
□ Log in to the Facebook Developers site.
□ Click +Create New App.
□ Enter an appropriate App Display Name and App Namespace for your organization. Only the App Display Name will be visible to users.
□ Click Continue and complete your App creation.
□ On the Basic info page for your App, enter the Site URL for your iMIS application.
□ Take note of the App ID Facebook has created for you.
3. Add your Facebook App information to the required iMIS JavaScript.
□ Edit your iMIS Facebook.js file using a text editor. By default it is located in C:\Program Files\ASI\imis\Net\AsiCommon\Scripts\SocialMedia.
□ Find the appId value and update it with the ID issued to you by Facebook.
To load the Facebook API
1. Edit your website’s master page. By default it is located in C:\Program Files\ASI\imis\Net\App_Themes.
2. Add the following html within the <body></body> tags of your master page:
<div id="fb-root"></div>
To enable the Facebook connection in iParts
Configure each instance of the Contact Mini Profile and Contact Profile Picture iParts used in your website to enable the options Allow picture change and removal and Prompt for Facebook connection.
Note: When the Facebook feature is disabled in the web.config file, the Facebook options do not appear in the Contact Mini Profile or Contact Profile Picture iParts.